<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * form.php
 * @author ranuandra
 *
 * 15 Mei 2012 14:05:29
 *
 * 
 */
?>
        <div class="toolbar-wrapper">
            	<div class="toolbar-container">
                    <ul class="toolbar">
                        <li><a href="<?php echo URL::base()?>admin/quote" class="New"><span class="medium_icon_new"></span></a></li>
                    </ul>
                </div>
            	<h1 class="title">New User</h1>
            </div>
                 <div class="form-container">
	              
	                  <?php echo Form::open(URL::base().'admin/user/save')?>

	                  <fieldset>
	                      <legend>User</legend>
	                          <div><label for="uname">Username <em>*</em></label> 
	                          		<?php echo Form::input('username', $form['username'], array())?>
	                          </div>
	                          <div><label for="uname">Email <em>*</em></label> 
	                          		<?php echo Form::input('email', $form['email'], array())?>
	                          </div>
	                          <div><label for="uname">Password <em>*</em></label> 
	                          		<?php echo Form::input('password', $form['password'], array())?>
	                          </div>
	                          <div><label for="uname">Konfirm Password <em>*</em></label> 
	                          		<?php echo Form::input('password_confirm', $form['password_confirm'], array())?>
	                          </div>
	                          <div><label for="uname">Cabang <em>*</em></label> 
	                          		<?php echo Form::select('mstplacement_id', $placements, '', array())?>
	                          </div>
	                  </fieldset>
	                  
	                  <div class="buttonrow">
	                  		<?php echo Form::submit('submit', 'Save', array('class'=>'button'))?>
	              
	                      <input type="button" value="Discard" class="button" />
	                  </div>
	                  
	              
	                 <?php 
	                 if(isset($form['id']))
	                 {
	                	echo Form::hidden('id', $form['id']);
	                 }
	                 echo Form::close()
	                 ?>
	                 </div><!-- /form-container -->